package List.LinkedList;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Test {
    public static void main(String[] args) {
        Collection ct = new ArrayList<>();
        ct.add("Java从入门到精通");
        ct.add("C语言从入门到精通");
        ct.add("C#从入门到精通");
        Iterator it = ct.iterator();
        while (it.hasNext()){
            String obj = (String) it.next();
            System.out.println(obj);
        }
    }
}
